
import { useDispatch, useSelector } from 'react-redux';
import { IActicle } from '../../types';

export default function () {
    const articles = useSelector((state: any) => state.articles.list)
    const dispatch = useDispatch()

    return <div className='List'>
        {articles.map((article: IActicle, index:number) => (
            <div className='item' key={index}>
                <div className='title'>{article.title}</div>
            </div>
        ))}
    </div>
}